<?php
/**
 * Template Name: Page Consignment
 * 
 */
get_header();
?>
	<section class="main">
		<nav class="main-nav">
			<ul>						
				<?php 
					$taxonomies = 'building-type';
					$args  = array('hide_empty'=>false);
					$terms = get_terms( $taxonomies, $args ) ;
					foreach($terms as $term){							
						if( $term->parent == 0 && get_tax_meta($term->term_id,'building_tax_show_home') == 1){
							?>
						<li <?php echo checkActiveMenuHome($term->term_id)?>><a href="<?php echo get_term_link($term,$taxonomies);?>"><?php echo $term->name;?></a></li>
						<li class="line-nav"></li>
					<?php
						}
					}
				?>
				<?php $pageid = 58 ;if(ICL_LANGUAGE_CODE == 'vi') $pageid = 76 ;?>
			   <li><a href="<?php echo get_page_link($pageid)?>">
					<?php echo get_page($pageid)->post_title; ?>
				</a></li>
			</ul>
		</nav>
    	<?php get_sidebar(); ?>        
        <!-- main content -->
        <section class="main-content">
			<section class="discrumble">
				<?php if(function_exists('bcn_display')){ bcn_display();}?>
			</section>			
			<section class="col-main">
				<div class="kg-property">
					<h2 class="title">Advertises your properties</h2>
					<?php
						if(isset($_GET['statusMessage']) and ( $_GET['statusMessage'] == 'ok' || $_GET['statusMessage'] == 'error')){
							$messege = '';
							if($_GET['statusMessage'] == 'ok'){
								$messege = __('Successful ! Please waiting administrator approve','building');
							}
							if($_GET['statusMessage'] == 'error'){
								$messege = __('Had the error occurred, please try again','building');
							}
					?>
						<br/><br/>
						<h3><?php echo $messege;?></h3>
					<?php
						}else{
							get_template_part('inc/building/frm_consignment');
						}
					?>					
				</div>
			</section>
        </section>
        <!-- end main content -->
        <div class="clear"></div>
    </section>
    <!-- content -->
<?php get_footer(); ?>